//	饼图度量

import React from 'react';
import DragContainer from 'src/pages/AnalyseManage/EditReport/components/EditorDataType/Drag/DragContainer';
import FormItem from 'antd/lib/form/FormItem';

interface IProps {
	config: any;
	onValuesChange: ( chartType: string, key: string, values: Object, configType: string ) => void;
	form: any;
	currentDragNode: any;
	dragOver: any;
}

const PieMeasure = ( props: IProps ) => {
	const { config, form, onValuesChange, currentDragNode, dragOver } = props;
	return (
		<FormItem label="扇区角度/度量" name="pieMeasure">
			<DragContainer
				form={form}
				name="pieMeasure"
				type='measure'
				tip="拖入度量"
				limit={1}
				config={config}
				dragOver={dragOver}
				currentDragNode={currentDragNode}
				onValuesChange={onValuesChange}
			></DragContainer>
		</FormItem>
	);
};

export default React.memo( PieMeasure );
